package sigapp.hvz.MenuSys;

import sigapp.hvz.R;
import sigapp.hvz.Infos.Happy;
import sigapp.hvz.Infos.InfoInfo;
import sigapp.hvz.Infos.Mission;
import sigapp.hvz.Infos.Rules;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class Info extends Activity implements OnClickListener
{
	@Override
    public void onCreate(Bundle savedInstanceState) 
    { 
        super.onCreate(savedInstanceState);
        setContentView(R.layout.info);
        
        View infoButton = findViewById(R.id.info_info_button);
        infoButton.setOnClickListener(this);
        View exitButton = findViewById(R.id.miss_button);
        exitButton.setOnClickListener(this);
        View happyButton = findViewById(R.id.happy_button);
        happyButton.setOnClickListener(this);
        View rulesButton = findViewById(R.id.rules_button);
        rulesButton.setOnClickListener(this);
    }
	public void onClick(View v) 
	{ 
		switch(v.getId())
		{
		case R.id.info_info_button:
			Intent i = new Intent(this, InfoInfo.class);
			startActivity(i);
			break;
		case R.id.happy_button:
			Intent j = new Intent(this, Happy.class);
			startActivity(j);
			break;
		case R.id.rules_button:
			Intent k = new Intent(this, Rules.class);
			startActivity(k);
			break;
		case R.id.miss_button:
			Intent l = new Intent(this, Mission.class);
			startActivity(l);
			break;
		//more buttons
		}
		
	}

}
